import { _decorator, Component, Node ,sp} from 'cc';
const { ccclass, property } = _decorator;

@ccclass('HideSelfBySp')
export class HideSelfBySp extends Component {

    @property(sp.Skeleton) ske:sp.Skeleton = null;

    start() {
        this.ske.getComponent(sp.Skeleton).setCompleteListener((r) => {
            this.node.destroy();
        })

    }


}


